﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.BaseData.Entitys;

/// <summary>
/// 工厂建模实体.
/// </summary>
[SugarTable("qms_base_factorystructure", "工厂建模")]
[Tenant(ClaimConst.TENANTID)]
public class QmsBaseFactorystructureEntity:CLDEntityBase
{
    /// <summary>
    /// 父级.
    /// </summary>
    [SugarColumn(ColumnName = "F_ParentId", ColumnDescription = "父级")]
    public string ParentId { get; set; }

    /// <summary>
    /// code.
    /// </summary>
    [SugarColumn(ColumnName = "F_EnCode", ColumnDescription = "code")]
    public string EnCode { get; set; }

    /// <summary>
    /// 名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_FullName", ColumnDescription = "名称")]
    public string FullName { get; set; }

    /// <summary>
    /// 排序.
    /// </summary>
    [SugarColumn(ColumnName = "F_SortCode", ColumnDescription = "排序")]
    public int? SortCode { get; set; }

    /// <summary>
    /// 描述.
    /// </summary>
    [SugarColumn(ColumnName = "F_Desc", ColumnDescription = "描述")]
    public string Desc { get; set; }

    /// <summary>
    /// 类型：车间、班组、工段（Workshop, Team, Section）.
    /// </summary>
    [SugarColumn(ColumnName = "F_Type", ColumnDescription = "类型：车间、班组、工段（Workshop, Team, Section）")]
    public string Type { get; set; }

}